//
//  GoldCoinPriceTableViewCell.m
//  魔兽大数据
//
//  Created by 王右 on 2017/12/8.
//  Copyright © 2017年 王右. All rights reserved.
//

#import "GoldCoinPriceTableViewCell.h"
#import "GoldCoinPirceModel.h"
#import "BigDataHeader.h"
@interface GoldCoinPriceTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *serverNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *updateTimeLabel;

@end

@implementation GoldCoinPriceTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(GoldCoinPirceModel *)model{
    if (model) {
        _serverNameLabel.text = model.realmName;
        _priceLabel.text = [NSString stringWithFormat:@"%@元/万",model.price];
        _updateTimeLabel.text = [NSString stringWithFormat:@"更新于:%@",[model.updateTime retureTimeStringWithFormate:@"MM-dd" multiple:1000]];
    }
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
